<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>网络流量展示 | ZAGRAPH</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">-->
  <!-- Theme style -->
  <link rel="stylesheet" href="/static/dist/css/AdminLTE.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="/static/dist/css/_all-skins.min.css">
  <!-- iCheck -->
  <!--<link rel="stylesheet" href="plugins/iCheck/flat/blue.css">-->
  <!-- Morris chart -->
<style>
    #scroll-top{background-color:#404449;color:#fff;cursor:pointer;position:fixed;bottom:55px;font-size:20px;right:5px;border-radius:2px;opacity:0;z-index:999;-webkit-transition:opacity .3s;transition:opacity .3s}
#scroll-top.in{opacity:.5;transition:opacity .3s;display: none;}
#scroll-top:hover{opacity:1;-webkit-transition:opacity .3s;transition:opacity .3s}
</style>
{% block link %}{% endblock %}
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body class="sidebar-mini skin-blue-light">
<div class="wrapper">

  <header class="main-header">
    <!-- Logo -->
    <a href="/" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>ZA</b>G</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>ZA</b>GRAPH</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle glyphicon glyphicon-list" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
        <div style="text-align: center;margin-top:16px;"  >
            <span style="color: rgb(253, 253, 28)" >
                {% block miaoshu %}{% endblock %}
            </span>
        </div>

    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <ul class="sidebar-menu">
          <li id="special">
          <a href="/special/">
            <i class="glyphicon glyphicon-fire"></i> <span>重点观测</span>
          </a>
        </li>
        <li id="index">
          <a href="/index/">
            <i class="glyphicon glyphicon-home"></i> <span>集中展示</span>
          </a>
        </li>
        <li id="edit">
          <a href="/devlist/">
            <i class="glyphicon glyphicon-cog"></i> <span>数据编辑</span>
          </a>
        </li>
          <li id="index">
          <a href="http://10.66.48.81/zabbix"  target="_blank">
            <i class="glyphicon glyphicon-share-alt"></i> <span>返回zabbix</span>
          </a>
        </li>

      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">


   {% block body %}{% endblock %}
  <button id="scroll-top" class="btn in "><i class="fa fa-chevron-up glyphicon glyphicon-tree-conifer"></i></button>

  </div>
  <!-- /.content-wrapper -->


  <div class="control-sidebar-bg"></div>
</div>

<script src="/static/dist/jQuery/jquery-2.2.3.min.js"></script>

<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/dist/js/app.min.js"></script>
<script>
    function myEvent(obj,ev,fn){
	if(obj.attachEvent){
		obj.attachEvent('on'+ev,fn);
	}else{
		obj.addEventListener(ev,fn,false);
	}
}
    myEvent(window,'load',function(){
	var oRTT=document.getElementById('scroll-top');
	var pH=document.documentElement.clientHeight;
	var timer=null;
	var scrollTop;
	window.onscroll=function(){
		scrollTop=document.documentElement.scrollTop||document.body.scrollTop;
		if(scrollTop>=pH){
			oRTT.style.display='block';
		}else{
			oRTT.style.display='none';
		}
		return scrollTop;
	};
	oRTT.onclick=function(){
		clearInterval(timer);
		timer=setInterval(function(){
			var now=scrollTop;
			var speed=(0-now)/10;
			speed=speed>0?Math.ceil(speed):Math.floor(speed);
			if(scrollTop==0){
				clearInterval(timer);
			}
			document.documentElement.scrollTop=scrollTop+speed;
			document.body.scrollTop=scrollTop+speed;
		}, 30);
	}
});
</script>
{% block javascript %}{% endblock %}
</body>
</html>
